home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Oct 90 / MacApp.Tech$ 10⁄26⁄90 / 2209-DoIdle vs VBLTaskMan-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  25 lines  |  [TEXT/GEOL]

  1. Item    8321873                         22-Oct-90        01:20PDT
  2.  
  3. From:   D2303                           Cameo Sys, Dev, Erik Swan,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    DoIdle vs VBLTaskManglerObj.
  8.  
  9. Howdee !!!
  10.     Something tells me (the program has a tendancy to crash) my implementation
  11. is flawed.  I have a class of objects that require as much of the CPU as they
  12. can get.  I also have minimal user interface and serial activity that need
  13. tending to.  Wraping the algorithm around the doIdle method was to slow.  I
  14. went and created an ancestor to my class that knew how to install and remove
  15. VBL tasks.  It seemed better that my object should queue a task than directally
  16. check the keyboard or the serial port or what ever.  This way my object's
  17. method was stuck to a tight loop and did not bounce in and out of the MacApp
  18. event loop.  It was faster (given that I did not go hog wild with ### of
  19. objects and tasks) !
  20. Questions:
  21. 1 ?     Is this bad OOP (how bad OPP is it) ?
  22. 2 ?     Has any one else done objects that can install and remove VBL's that
  23. dont crash every time you demo it to the boss.
  24.  
  25.